package com.hzsai.mininote.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * hzsai 2020/2/18
 * usage:
 **/
@RestController
public class HelloController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public Map hello() {
        Map greetingT = new HashMap();
        Map greeting = new ConcurrentHashMap();
        greeting.put("greeting", "Hello World!");
        return greeting;
    }
}
